<?
	require("koneksi.php");
	$nrp=$_GET["nrp"];
	$semester=$_GET["semester"];
	//$query=mysql_query("select * from biodata where nrp='$nrp'");
	//$row=mysql_fetch_row($query);
	//$jumlahdata = mysql_num_rows($query);
	
	//if ($jumlahdata >0)
	if ($nrp)
	{
		$string=substr($nrp,0,3);
		if($string==311)
		{
			//echo "Informatika "; 
			switch($semester)
			{
				case 1: include ("infor1.php");break;
				case 2: include ("infor2.php");break;
				case 3: include ("infor3.php");break;
				case 4: include ("infor4.php");break;
				case 5: include ("infor5.php");break;
				case 6: include ("infor6.php");break;
				case 7: include ("infor7.php");break;
				case 8: include ("infor8.php");break;
			}
 			//Header("Location:in.php");
		}
		else if($string==111)
		{
			//echo "Management";
			switch($semester)
			{
				case 1: include ("manag1.php");break;
				case 2: include ("manag2.php");break;
				case 3: include ("manag3.php");break;
				case 4: include ("manag4.php");break;
				case 5: include ("manag5.php");break;
				case 6: include ("manag6.php");break;
				case 7: include ("manag7.php");break;
				case 8: include ("manag8.php");break;
			}
		}
		else if($string==112)
		{
			//echo "Akuntansi";
			switch($semester)
			{
				case 1: include ("akun1.php");break;
				case 2: include ("akun2.php");break;
				case 3: include ("akun3.php");break;
				case 4: include ("akun4.php");break;
				case 5: include ("akun5.php");break;
				case 6: include ("akun6.php");break;
				case 7: include ("akun7.php");break;
				case 8: include ("akun8.php");break;
			}
		}
		else if($string==611)
		{
			//echo "Bhs Tionghoa";
			switch($semester)
			{
				case 1: include ("bt1.php");break;
				case 2: include ("bt2.php");break;
				case 3: include ("bt3.php");break;
				case 4: include ("bt4.php");break;
				case 5: include ("bt5.php");break;
				case 6: include ("bt6.php");break;
				case 7: include ("bt7.php");break;
				case 8: include ("bt8.php");break;
			}
		}
		else
		{
			echo "Anda Tidak Terdaftar";
		}
	}else
	{
		echo "Anda Tidak Terdaftar";
	
	}
	
?>